#pragma once
#include <iostream>
#include <istream>
#include <string>
#include <sstream>

#ifdef WIN32

#ifndef LOG_API
#define LOG_API  _declspec(dllexport)
#else
#define LOG_API  __declspec(dllimport)
#endif

#else

#define  LOG_API

#endif


enum class LOG_LEVEL{
    LOG_INF  =0,
    LOG_WAR  =1,
    LOG_ERR  =2,
    LOG_FAT  =3,
    LOG_DBUG =4,
};

enum class LOG_MOD{
    LOG_MOD_PRINT_FILE  =1,
    LOG_MOD_PRINT_CONSL =2,
    LOG_MOD_PRINT_SOCK  =4,
};

//#define LOG_END  "LogEnd"
#define LOG_END    "."
#define HEX(data) std::hex << data
#define DEC(data) std::dec <<data
#define ENUM_VALUE(data) ((int)data)
